package com.easyad.servlet;

import java.util.HashSet;
import javax.persistence.Entity;

@Entity
public class AdInfoMem {

	private String adID;
	private String adUrl; 
	private String feeFlag;
	private HashSet keywords;
	
	public String getAdID() {
		return adID;
	}
	public void setAdID(String adID) {
		this.adID = adID;
	}
	public String getAdUrl() {
		return adUrl;
	}
	public void setAdUrl(String adUrl) {
		this.adUrl = adUrl;
	}
	public String getFeeFlag() {
		return feeFlag;
	}
	public void setFeeFlag(String feeFlag) {
		if ("CPM".equalsIgnoreCase(feeFlag)) 
			this.feeFlag="0";
		if ("CPC".equalsIgnoreCase(feeFlag)) 
			this.feeFlag="1";
		if ("CPA".equalsIgnoreCase(feeFlag)) 
			this.feeFlag="2";
	}
	
	public HashSet getKeywords() {
		return keywords;
	}
	public void setKeywords(HashSet keywords) {
		this.keywords = keywords;
	}
	
}
